from __future__ import with_statement
import sys
sys.path.append("/home/jw/fydp-david/")
import gdb
import audio_breakpoint



class SetAudioBreakPointCommand (gdb.Command):
    """Save the current breakpoints to a file.
This command takes a single argument, a file name.
The breakpoints can be restored using the 'source' command."""

    def __init__ (self):
        super (SetAudioBreakPointCommand, self).__init__ ("audio setbr",
                                                       gdb.COMMAND_SUPPORT,
                                                       gdb.COMPLETE_FILENAME)

    def invoke (self, arg, from_tty):
		print "about to set audio breakpoint"
		bp = AudioBreakPoint(arg)
		print "audio break point set at"
		print arg
	

SetAudioBreakPointCommand ()
